package com.mail.enums;

public enum ResponseCode{

    //***********自定义异常开始*********************

    SUCCESS(200,"操作成功"),
    STRING_TYPE_IS_NULL(444,"参数格式有误！"),
    LONG_INTEGER_IS_NULL(10001,"参数格式有误！"),
    SMS_CODE_EXCEPTION(10002,"发送验证码太频繁,请稍后再试"),
    EMAIL_CONFIG_ACCOUNT_IS_NULL(1003,"配置中未找到此邮箱！"),
    CRON_IS_NOT_VALID(1004,"cron校验不合法！"),
    FILE_IS_NOT_NULL(1005,"文件不合法！"),
    ID_IS_NOT_NULL(1006,"id为空！");

    //***********自定义异常结束*********************

    private int code;
    private String msg;

    ResponseCode(int code,String msg){
        this.code=code;
        this.msg=msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}

